﻿@model CafeSingleton.Models.Cafe
<h2>Edit a Cafe</h2>
<div class="panel panel-default">
    <div class="panel-body">
        <div class="col-md-offset-3 col-md-6">
            <form method="post">
                @Html.HiddenFor(x => x.ID)
                <div class="form-group">
                    <label class="col-sm-2 control-label">Name</label>
                    <div class="col-sm-10">
                        <input type="text" value="@Model.CafeName" class="form-control" name="cafename">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">City</label>
                    <div class="col-sm-10">
                        <input type="text" value="@Model.City" class="form-control" name="city">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
                        <input type="submit" value="Save" class="btn btn-block btn-primary" />
                    </div>
                </div>
            </form>
            <form method="post" action="/Home/Delete/@Model.ID">
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
                        <input type="submit" value="Delete" class="btn btn-block btn-danger" /><br />
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
